
/*

Copyright (c) 2008, Simon Howard 

Permission to use, copy, modify, and/or distribute this software 
for any purpose with or without fee is hereby granted, provided 
that the above copyright notice and this permission notice appear 
in all copies. 

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 
AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR 
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 

 */

#ifndef JIGSAWN_ERROR_H
#define JIGSAWN_ERROR_H

#ifdef __cplusplus
extern "C" {
#endif

#define JSON_ERROR_SUCCESS           0      /* No error */
#define JSON_ERROR_OUT_OF_MEMORY    (-1)    /* Out of memory */
#define JSON_ERROR_ENCODING         (-2)    /* Error in Unicode encoding */
#define JSON_ERROR_PARSE            (-3)    /* Parse error in JSON sequence */
#define JSON_ERROR_INPUT_STREAM     (-4)    /* Error while reading input */
#define JSON_ERROR_END_OF_FILE      (-5)    /* End of file reached */
#define JSON_ERROR_UNKNOWN_ENCODING (-6)    /* Unknown Unicode encoding */

#ifdef __cplusplus
}
#endif

#endif /* #ifndef JIGSAWN_ERROR_H */

